/**
 * 
 */
package org.top10.executor;

import it.sauronsoftware.cron4j.Scheduler;

public class Cron4jTaskTriggerScheduler implements TaskTriggerScheduler {

	
    Scheduler scheduler;
    
    Cron4jTaskTriggerScheduler(){
    	scheduler = new Scheduler();
    }
    
	public void addTriggerTask(String crontabTime, Runnable job) {
		scheduler.schedule(crontabTime, job);
	}

	public void start() {
		scheduler.start();
	}

}
